#! /bin/bash

func() {
  local num=1
  echo "func get called"
}

func
echo $num

#echo '$*'
#for i in $*; do
#  echo $i
#done
#echo '------------------'
#
#echo '$@'
#for i in $@; do
#  echo $i
#done
#echo '------------------'
#
#echo '"$*"'
#for i in "$*"; do
#  echo $i
#done
#echo '------------------'
#
#echo '"#@"'
#for i in "$@"; do
#  echo $i
#done
#echo '------------------'
